#include <sstream>

#include "Utils.hpp"

namespace FeedHandler
{
	std::list<std::string> tokenize(const std::string & str, const char delimiter)
	{
		std::list<std::string> tokens;

		std::istringstream iss(str);

		std::string token;
		while (std::getline(iss, token, delimiter))
		{
			tokens.push_back(token);
		}

		return tokens;
	}
}
